package com.qf.springboot0406.dao;

import com.qf.springboot0406.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UseDao {
    public User getUSerById(@Param("id") Integer id);
    public List<User> selectAll();
    void insertUser(@Param("name") String name, @Param("password") String password,@Param("sex") String sex, @Param("birthday") String birthday, @Param("registTime") String registTime);
    void updateUserById(@Param("id") Integer id, @Param("name") String name,@Param("password") String password,@Param("sex") String sex, @Param("birthday") String birthday, @Param("registTime") String registTime);
    void delUser(@Param("id") Integer id);
}
